﻿<%@ Page Title="" Language="C#" MasterPageFile="~/sellMain.Master" AutoEventWireup="true" CodeBehind="testGoodList.aspx.cs" Inherits="Newsell.testGoodList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="Scripts/jquery.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
        $(document).ready(function () {
            $("a").click(function () {
                loadGoodList();
            });
        });


        function loadGoodList() {
            $.ajax({
                type: "post",
                url: "goodList.aspx",
                cache: false,
                beforeSend: function (jqXHR, settings) {
                    debugger;
                    $("#goodListCont").text("正在载入！");
                },
                success: function (data, textStatus, jqXHR) {
                    debugger;
                    $("#goodListCont").load("goodList.aspx", function (response, status, xhr) {
                        debugger;
                        alert("sucscess");
                    });
                },
                error: function (jqXHR, textStatus, errorThrown) {
                    debugger;
                    alert("is error");
                }
            });

        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainContentPlaceHolder" runat="server">

    <a href="#">测试jquery.load</a>
    <div id="goodListCont">
        
    </div>

</asp:Content>
